<?php

namespace App\Http\Requests;

class AttendanceSetUpdateRequest extends Request
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
       return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'late'=> 'required',
            'early'=> 'required',
            'absenteeism'=> 'required',
            'business'=> 'required',
            'sick'=> 'required',
            'overtime'=> 'required',
            'year'=>'required'
            
        ];
    }



    public function FillData()
    {

        return [
            'late'=>$this->late,
            'early'=> $this->early,
            'absenteeism'=>$this->absenteeism,
            'business'=> $this->business,
            'sick'=> $this->sick,
            'overtime'=> $this->overtime,
            'year' => $this->year
        ];
    }
}
